package com.hp.mapper;

import com.hp.pojo.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {

    //查看一级分类
    List<Category> findList(int parentId);
    List<Category> findAll();
    void add(Category category);

    Category findById(int id);

    void update(Category category);

    void delete(int id);

    void deleteParentId(int ParentId);


}
